package com.xyz.app.controller;

import com.free.common.vo.ResultModel;
import com.xyz.service.CommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class CommonController {

    @Autowired
    private CommonService commonService;

    @RequestMapping("/sms.json")
    @ResponseBody
    public ResultModel smsInfo(String phone){
       return commonService.smsValidateNo(phone, 1);
    }

}
